package com.greenova.projector.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.greenova.projector.dao.ProjectDao;
import com.greenova.projector.entity.Project;

@Service
public class ProjectServiceImpl implements ProjectService {

	@Autowired
	private ProjectDao projectDao;

	@Override
	public void addProject(Project project) {
		projectDao.addProject(project);
	}

	@Override
	public List<Project> listAllProjects() {
		return projectDao.listAllProjects();
	}

	@Override
	public Project getProjectById(long projectId) {
		return projectDao.getProjectById(projectId);
	}

	@Override
	public void updateProject(Project project) {
		projectDao.updateProject(project);
		
	}

}
